<?php
// +----------------------------------------------------------------------
// | Author: derek <693472824@qq.com> <http://www.bloveambition.com/>
// +----------------------------------------------------------------------

namespace Api\Model;
use Think\Model;

/**
 * 模型
 * @author derek <693472824@qq.com>
 */
class UserModel extends Model {

    /**
     * 用户模型自动完成
     */
	protected $_auto = array(
        array('password', '', self::MODEL_BOTH, 'ignore'),
		array('password', null, self::MODEL_BOTH, 'ignore'),
        array('password', 'think_ucenter_md5', self::MODEL_BOTH, 'function', USER_AUTH_KEY),
        array('created_time', NOW_TIME, self::MODEL_INSERT),
	);

}